<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <title>EPICS exampleJava/helloPutGet</title>
  <link rel="stylesheet" type="text/css"
  href="http://epics-pvdata.sourceforge.net/base.css" />
  <link rel="stylesheet" type="text/css"
  href="http://epics-pvdata.sourceforge.net/epicsv4.css" />
  <style type="text/css">
/*<![CDATA[*/
     .about { margin-left: 3em; margin-right: 3em; font-size: .83em}
     table { margin-left: auto; margin-right: auto }
     .diagram { text-align: center; margin: 2.5em 0 }
     body { margin-right: 10% }
/*]]>*/</style>

 <!-- Script that generates the Table of Contents -->
  <script type="text/javascript" src="http://epics-pvdata.sourceforge.net/script/tocgen.js"></script>

</head>

<body>

<div class="head">
<h1>EPICS exampleJava/helloPutGet</h1>
<h2 class="nocount">2016.08.26</h2>

<h2 class="nocount">Abstract</h2>
<p>
<b>helloPutGet</b> implements a simple channelRPC putGet.
</p>

</div> <!-- head -->

<div id="toc">
  <h2 class="nocount">Table of Contents</h2>
</div>

<!-- Place what you would like in the Table of Contents, inside the contents div -->
<div id="contents" class="contents">	  
<hr />

<h2>Overview</h2>
<p>The example implements a simple putGet that has a top level pvStructure:
</p>
<pre>
structure
    structure argument
        string value
    structure result
        string value
        time_t timeStamp
            long secondsPastEpoch
            int nanoseconds
            int userTag
</pre>
<p>It is designed to be accessed via a channelPutGet request.
The client sets argument.value
When the record processes it sets result.value to "Hello " 
concatenated with argument.value.
Thus if the client sets argument.value equal to "World"
result.value will be "Hello World".
In addition the timeStamp is set to the time when process is called.</p>
<p>
The example can be run on linux as follows:</p>
<h3>Server</h3>
<pre>
mrk&gt; pwd
/home/epicsv4/master/exampleJava/helloPutGet
mrk&gt; scripts/helloPutGetMain
</pre>
<h3>Client</h3>
<pre>
mrk&gt; pwd
/home/epicsv4/master/exampleJava/helloPutGet
mrk&gt; scripts/helloPutGetClient
</pre>

</div> <!-- class="contents" -->
</body>
</html>
